using Sunisoft.IrisSkin;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Tool.BaseClass;
using Tool.Utilty;

namespace Tool
{
	public class Main_Window : Form
	{
		private System.ComponentModel.IContainer components = null;

		private MenuStrip menuStrip1;

		private ToolStripMenuItem 系统配置ToolStripMenuItem;

		private SkinEngine skinEngine1;

		private Panel panel1;

		private ToolStripMenuItem 帮助ToolStripMenuItem;

		private ToolStripMenuItem 意见反馈ToolStripMenuItem;

		private ToolStripMenuItem 关于软件ToolStripMenuItem;

		private ToolStripMenuItem 系统记录ToolStripMenuItem;

		private ToolStripMenuItem 官方网站ToolStripMenuItem;

		private ToolStripMenuItem 教程文档ToolStripMenuItem;

		private ToolStripMenuItem 捐款勉励ToolStripMenuItem;

		private ToolStripMenuItem 历史版本ToolStripMenuItem1;

		private ToolStripMenuItem 新建ToolStripMenuItem;

		private ToolStripMenuItem 电脑版ToolStripMenuItem;

		private ToolStripMenuItem 移动版ToolStripMenuItem;

		private ToolStripMenuItem 微信公众号ToolStripMenuItem;

		public Main_Window()
		{
			this.InitializeComponent();
		}

		private void Main_Window_Load(object sender, EventArgs e)
		{
			this.Text = "仿站小工具 V" + GClass47.Ver.ToString();
			this.panel1.Controls.Clear();
			Step1 step = new Step1(GClass26.GEnum4.Computer);
			step.Load += new EventHandler(this.method_0);
			this.panel1.Controls.Add(step);
			this.menuStrip1.Visible = true;
		}

		private void method_0(object sender, EventArgs e)
		{
			Step1 step = (Step1)sender;
			int width = base.Width;
			int height = base.Height;
			base.Width = step.Width + 7;
			base.Height = step.Height + 80;
			System.Drawing.Point location = base.Location;
			base.Location = new System.Drawing.Point
			{
				X = location.X - (base.Width - width) / 2,
				Y = location.Y - (base.Height - height) / 2
			};
		}

		private void Main_Window_FormClosed(object sender, FormClosedEventArgs e)
		{
			GClass34.smethod_2();
			this.Dispose(true);
			Environment.Exit(0);
		}

		private void 系统配置ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Config config = new Config();
			SkinEngine skinEngine = new SkinEngine(config);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			config.MdiParent = base.ParentForm;
			config.KeyDown += new KeyEventHandler(this.method_3);
			config.ShowDialog(this);
		}

		private void method_1(object sender, EventArgs e)
		{
			Help help = new Help();
			SkinEngine skinEngine = new SkinEngine(help);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			help.MdiParent = base.ParentForm;
			help.ShowDialog(this);
		}

		private void method_2(object sender, EventArgs e)
		{
			Help help = new Help();
			SkinEngine skinEngine = new SkinEngine(help);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			help.MdiParent = base.ParentForm;
			help.KeyDown += new KeyEventHandler(this.method_3);
			help.ShowDialog(this);
		}

		private void 关于软件ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			About about = new About();
			SkinEngine skinEngine = new SkinEngine(about);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			about.MdiParent = base.ParentForm;
			about.KeyDown += new KeyEventHandler(this.method_3);
			about.ShowDialog(this);
		}

		private void 意见反馈ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Join join = new Join();
			SkinEngine skinEngine = new SkinEngine(join);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			join.MdiParent = base.ParentForm;
			join.KeyDown += new KeyEventHandler(this.method_3);
			join.ShowDialog(this);
		}

		private void 系统记录ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			ErrorRecord errorRecord = new ErrorRecord();
			SkinEngine skinEngine = new SkinEngine(errorRecord);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			errorRecord.MdiParent = base.ParentForm;
			errorRecord.KeyDown += new KeyEventHandler(this.method_3);
			errorRecord.ShowDialog(this);
		}

		private void method_3(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				((Form)sender).Close();
			}
		}

		private void 官方网站ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			System.Diagnostics.Process.Start("https://smalltool.github.io/");
		}

		private void 教程文档ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			System.Diagnostics.Process.Start("http://smalltool.rtfd.org/");
		}

		private void 捐款勉励ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			Donate donate = new Donate();
			SkinEngine skinEngine = new SkinEngine(donate);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			donate.MdiParent = base.ParentForm;
			donate.KeyDown += new KeyEventHandler(this.method_3);
			donate.ShowDialog(this);
		}

		private void 历史版本ToolStripMenuItem1_Click(object sender, EventArgs e)
		{
			History history = new History();
			SkinEngine skinEngine = new SkinEngine(history);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			history.MdiParent = base.ParentForm;
			history.KeyDown += new KeyEventHandler(this.method_3);
			history.ShowDialog(this);
		}

		private void 电脑版ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			this.Text = "仿站小工具 V" + GClass47.Ver;
			this.panel1.Controls.Clear();
			this.panel1.Controls.Add(new Step1(GClass26.GEnum4.Computer));
			this.menuStrip1.Visible = true;
		}

		private void 移动版ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			this.Text = "仿站小工具 V" + GClass47.Ver;
			this.panel1.Controls.Clear();
			this.panel1.Controls.Add(new Step1(GClass26.GEnum4.Mobile));
			this.menuStrip1.Visible = true;
		}

		private void 微信公众号ToolStripMenuItem_Click(object sender, EventArgs e)
		{
			WeiXin weiXin = new WeiXin();
			SkinEngine skinEngine = new SkinEngine(weiXin);
			skinEngine.SkinFile = "MSN.ssk";
			skinEngine.TitleFont = new System.Drawing.Font("微软雅黑", 10f);
			weiXin.MdiParent = base.ParentForm;
			weiXin.KeyDown += new KeyEventHandler(this.method_3);
			weiXin.ShowDialog(this);
		}

		//protected override void vmethod_0(bool bool_0)
		//{
		//	if (bool_0 && this.components != null)
		//	{
		//		this.components.Dispose();
		//	}
		//	base.Dispose(bool_0);
		//}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(Main_Window));
			this.menuStrip1 = new MenuStrip();
			this.新建ToolStripMenuItem = new ToolStripMenuItem();
			this.电脑版ToolStripMenuItem = new ToolStripMenuItem();
			this.移动版ToolStripMenuItem = new ToolStripMenuItem();
			this.系统配置ToolStripMenuItem = new ToolStripMenuItem();
			this.系统记录ToolStripMenuItem = new ToolStripMenuItem();
			this.教程文档ToolStripMenuItem = new ToolStripMenuItem();
			this.官方网站ToolStripMenuItem = new ToolStripMenuItem();
			this.捐款勉励ToolStripMenuItem = new ToolStripMenuItem();
			this.帮助ToolStripMenuItem = new ToolStripMenuItem();
			this.历史版本ToolStripMenuItem1 = new ToolStripMenuItem();
			this.意见反馈ToolStripMenuItem = new ToolStripMenuItem();
			this.关于软件ToolStripMenuItem = new ToolStripMenuItem();
			this.skinEngine1 = new SkinEngine(this);
			this.panel1 = new Panel();
			this.微信公众号ToolStripMenuItem = new ToolStripMenuItem();
			this.menuStrip1.SuspendLayout();
			base.SuspendLayout();
			this.menuStrip1.ImageScalingSize = new System.Drawing.Size(18, 18);
			this.menuStrip1.Items.AddRange(new ToolStripItem[]
			{
				this.新建ToolStripMenuItem,
				this.系统配置ToolStripMenuItem,
				this.系统记录ToolStripMenuItem,
				this.教程文档ToolStripMenuItem,
				this.微信公众号ToolStripMenuItem,
				this.官方网站ToolStripMenuItem,
				this.捐款勉励ToolStripMenuItem,
				this.帮助ToolStripMenuItem
			});
			this.menuStrip1.Location = new System.Drawing.Point(0, 0);
			this.menuStrip1.Name = "menuStrip1";
			this.menuStrip1.ShowItemToolTips = true;
			this.menuStrip1.Size = new System.Drawing.Size(673, 25);
			this.menuStrip1.TabIndex = 1;
			this.menuStrip1.Text = "menuStrip1";
			this.新建ToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.电脑版ToolStripMenuItem,
				this.移动版ToolStripMenuItem
			});
			this.新建ToolStripMenuItem.Name = "新建ToolStripMenuItem";
			this.新建ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.新建ToolStripMenuItem.Text = "文件";
			this.电脑版ToolStripMenuItem.Name = "电脑版ToolStripMenuItem";
			this.电脑版ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
			this.电脑版ToolStripMenuItem.Text = "下载普通网站";
			this.电脑版ToolStripMenuItem.Click += new EventHandler(this.电脑版ToolStripMenuItem_Click);
			this.移动版ToolStripMenuItem.Name = "移动版ToolStripMenuItem";
			this.移动版ToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
			this.移动版ToolStripMenuItem.Text = "下载手机网站";
			this.移动版ToolStripMenuItem.Click += new EventHandler(this.移动版ToolStripMenuItem_Click);
			this.系统配置ToolStripMenuItem.Name = "系统配置ToolStripMenuItem";
			this.系统配置ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.系统配置ToolStripMenuItem.Text = "配置";
			this.系统配置ToolStripMenuItem.Click += new EventHandler(this.系统配置ToolStripMenuItem_Click);
			this.系统记录ToolStripMenuItem.Name = "系统记录ToolStripMenuItem";
			this.系统记录ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.系统记录ToolStripMenuItem.Text = "报告";
			this.系统记录ToolStripMenuItem.Click += new EventHandler(this.系统记录ToolStripMenuItem_Click);
			this.教程文档ToolStripMenuItem.Name = "教程文档ToolStripMenuItem";
			this.教程文档ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.教程文档ToolStripMenuItem.Text = "教程";
			this.教程文档ToolStripMenuItem.Click += new EventHandler(this.教程文档ToolStripMenuItem_Click);
			this.官方网站ToolStripMenuItem.Name = "官方网站ToolStripMenuItem";
			this.官方网站ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.官方网站ToolStripMenuItem.Text = "官网";
			this.官方网站ToolStripMenuItem.Click += new EventHandler(this.官方网站ToolStripMenuItem_Click);
			this.捐款勉励ToolStripMenuItem.Name = "捐款勉励ToolStripMenuItem";
			this.捐款勉励ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.捐款勉励ToolStripMenuItem.Text = "打赏";
			this.捐款勉励ToolStripMenuItem.Click += new EventHandler(this.捐款勉励ToolStripMenuItem_Click);
			this.帮助ToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[]
			{
				this.历史版本ToolStripMenuItem1,
				this.意见反馈ToolStripMenuItem,
				this.关于软件ToolStripMenuItem
			});
			this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
			this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
			this.帮助ToolStripMenuItem.Text = "帮助";
			this.历史版本ToolStripMenuItem1.Name = "历史版本ToolStripMenuItem1";
			this.历史版本ToolStripMenuItem1.Size = new System.Drawing.Size(124, 22);
			this.历史版本ToolStripMenuItem1.Text = "历史版本";
			this.历史版本ToolStripMenuItem1.Click += new EventHandler(this.历史版本ToolStripMenuItem1_Click);
			this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
			this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
			this.意见反馈ToolStripMenuItem.Text = "加入我们";
			this.意见反馈ToolStripMenuItem.Click += new EventHandler(this.意见反馈ToolStripMenuItem_Click);
			this.关于软件ToolStripMenuItem.Name = "关于软件ToolStripMenuItem";
			this.关于软件ToolStripMenuItem.Size = new System.Drawing.Size(124, 22);
			this.关于软件ToolStripMenuItem.Text = "关于软件";
			this.关于软件ToolStripMenuItem.Click += new EventHandler(this.关于软件ToolStripMenuItem_Click);
			this.skinEngine1.SerialNumber = "";
			this.skinEngine1.SkinFile = null;
			this.panel1.Dock = DockStyle.Fill;
			this.panel1.Location = new System.Drawing.Point(0, 25);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(673, 467);
			this.panel1.TabIndex = 3;
			this.微信公众号ToolStripMenuItem.ForeColor = System.Drawing.SystemColors.ControlText;
			this.微信公众号ToolStripMenuItem.Name = "微信公众号ToolStripMenuItem";
			this.微信公众号ToolStripMenuItem.Size = new System.Drawing.Size(80, 21);
			this.微信公众号ToolStripMenuItem.Text = "微信公众号";
			this.微信公众号ToolStripMenuItem.Click += new EventHandler(this.微信公众号ToolStripMenuItem_Click);
			base.AutoScaleMode = AutoScaleMode.None;
			this.BackColor = System.Drawing.SystemColors.Control;
			base.ClientSize = new System.Drawing.Size(673, 492);
			base.Controls.Add(this.panel1);
			base.Controls.Add(this.menuStrip1);
			base.FormBorderStyle = FormBorderStyle.FixedSingle;
			////base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			base.IsMdiContainer = true;
			base.MainMenuStrip = this.menuStrip1;
			base.MaximizeBox = false;
			base.Name = "Main_Window";
			base.StartPosition = FormStartPosition.CenterScreen;
			base.FormClosed += new FormClosedEventHandler(this.Main_Window_FormClosed);
			base.Load += new EventHandler(this.Main_Window_Load);
			this.menuStrip1.ResumeLayout(false);
			this.menuStrip1.PerformLayout();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
